﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Core.DataAccess.Model.Migrations.ProjectEntrepot
{
    public partial class modelupdate71001 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<int>(
                name: "TopKey",
                table: "product_type",
                nullable: false,
                oldClrType: typeof(int),
                oldNullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsWholesale",
                table: "product_sku",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "WholesalePrice",
                table: "product_sku",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsWholesale",
                table: "product_sku");

            migrationBuilder.DropColumn(
                name: "WholesalePrice",
                table: "product_sku");

            migrationBuilder.AlterColumn<int>(
                name: "TopKey",
                table: "product_type",
                nullable: true,
                oldClrType: typeof(int));
        }
    }
}
